#pragma once
extern char LOG_BUF[1024];

#define LOG(format,...) \
printf(LOG_BUF,__VA_ARGS__); \


#define LOGEX(format,...) \
strcpy_s(LOG_BUF, format);\
strcat(LOG_BUF,"        [FILE]:%s       [LINE]:%d       [FUNCNAME]:%s]\r\n");\
printf(LOG_BUF,__VA_ARGS__,__FILE__,__LINE__,__FUNCTION__); \